// component/checklist/checklist.js
Component({
  /**
   * 组件的属性列表
   */
  properties: {

  },

  /**
   * 组件的初始数据
   */
  data: {
    selectData:[],
    titles: [
      {title:'小牛金融1',isCheck:false},
      {title:'小牛金融2',isCheck:false},
      {title:'小牛金融3',isCheck:false},
      {title:'小牛金融4',isCheck:false},
      {title:'小牛金融5',isCheck:false},
      {title:'小牛金融6',isCheck:false},
      {title:'小牛金融7',isCheck:false},
      {title:'小牛金融8',isCheck:false},
      {title:'小牛金融9',isCheck:false},
      {title:'小牛金融10',isCheck:false},
      {title:'小牛金融11',isCheck:false},
      {title:'小牛金融12',isCheck:false},
      {title:'小牛金融13',isCheck:false}
    ],
  },

  /**
   * 组件的方法列表
   */
  methods: {
    clickItem(e){
      let selectID = e.currentTarget.dataset.num;
      let arr = this.data.titles;

      arr[selectID].isCheck = !arr[selectID].isCheck;

      this.setData({
        titles:arr
      })
    }
  }
})
